package com.lg.java;

/**
 * 单继承  多实现
 */
public class MoreExtend {

    static class Aserver{
        public  void  arun(){
            System.out.println("aserver arun");
        }
    }

    static class Bserver extends Aserver implements Runnable{
        public  void  brun(){
            System.out.println("bserver brun");
        }

        @Override
        public void run() {
            System.out.println("bserver Runnable");
        }
    }

    public static void main(String[] args) {
        Bserver bserver = new Bserver();
        Thread thread = new Thread(bserver);
        thread.start();
        System.out.println("main exit");
    }
}
